<template>
  <div class="home-container">
    <div class="welcome-box">
      <h1>📚 欢迎使用图书管理系统</h1>
      <p class="welcome-msg">您好，欢迎回来！请选择左侧菜单开始操作：</p>

      <div class="function-grid">
        <div class="function-card">
          <h3>🔍 图书查询与管理</h3>
          <p>浏览、添加、修改图书信息。</p>
        </div>
        <div class="function-card">
          <h3>📖 借阅记录查看</h3>
          <p>查看当前借阅情况与历史记录。</p>
        </div>
        <div class="function-card">
          <h3>📅 借阅与归还</h3>
          <p>用户可借阅图书，按时归还。</p>
        </div>
        <div class="function-card">
          <h3>📦 库存审批与入库管理</h3>
          <p>管理员审核出入库申请，管理库存状态。</p>
        </div>
        <div class="function-card">
          <h3>👤 用户与权限管理</h3>
          <p>管理员可管理系统用户与角色权限。</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Index',
  data() {
    return {}
  }
}
</script>

<style scoped>
.home-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 100px);
  background-color: #f5f7fa;
  padding-top: 60px;
}

.welcome-box {
  width: 90%;
  max-width: 1000px;
  background-color: #ffffff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.welcome-box h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.welcome-msg {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.function-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.function-card {
  background: #f9fafc;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  width: 260px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.function-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.function-card h3 {
  font-size: 18px;
  color: #409EFF;
  margin-bottom: 10px;
}

.function-card p {
  font-size: 14px;
  color: #555;
}
</style>
